package com.huo.springbootdubbo.controller;

import com.huo.springbootdubbo.service.TestService;
import com.huo.springbootdubbo.vo.TestVO;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Reference(version = "1.0")
    private TestService testService;

    @RequestMapping("/test")
    public String test(TestVO testVO) {
        return testService.test(testVO);
    }
}
